Azure OpenAI (preview:2024-10-01)

2025/02/20 • 7 updated methods

ListAssistants (updated)
Description Gets a list of assistants that were previously created.
Reference Link ¶

⚶ Changes

{
  "#id": "ListAssistants",
  "$parameters": [
    {
      "#name": "before",
      "Description": {
        "new": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.",
        "old": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list."
      }
    }
  ]
}

⚼ Request

GET:  /assistants
{
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
description: string ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
tool_resources: object ,
temperature: number ,
top_p: number ,
response_format: string ,
metadata: object ,
}
,
]
,
first_id: string ,
last_id: string ,
has_more: boolean ,
}
ListMessages (updated)
Description Gets a list of messages that exist on a thread.
Reference Link ¶

⚶ Changes

{
  "#id": "ListMessages",
  "$parameters": [
    {
      "#name": "before",
      "Description": {
        "new": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.",
        "old": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list."
      }
    }
  ]
}

⚼ Request

GET:  /threads/{threadId}/messages
{
threadId: string ,
runId: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
id: string ,
object: enum ,
created_at: integer ,
thread_id: string ,
status: enum ,
incomplete_details: object ,
completed_at: integer ,
incomplete_at: integer ,
role: enum ,
content:
[
{
type: string ,
}
,
]
,
assistant_id: string ,
run_id: string ,
attachments:
[
{
file_id: string ,
tools:
[
string ,
]
,
}
,
]
,
metadata: object ,
}
,
]
,
first_id: string ,
last_id: string ,
has_more: boolean ,
}
ListRuns (updated)
Description Gets a list of runs for a specified thread.
Reference Link ¶

⚶ Changes

{
  "#id": "ListRuns",
  "$parameters": [
    {
      "#name": "before",
      "Description": {
        "new": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.",
        "old": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list."
      }
    }
  ]
}

⚼ Request

GET:  /threads/{threadId}/runs
{
threadId: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
id: string ,
object: enum ,
thread_id: string ,
assistant_id: string ,
status: enum ,
required_action: object ,
last_error: object ,
model: string ,
instructions: string ,
tools:
[
{
type: string ,
}
,
]
,
created_at: integer ,
expires_at: integer ,
started_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
incomplete_details: enum ,
usage: object ,
temperature: number ,
top_p: number ,
max_prompt_tokens: integer ,
max_completion_tokens: integer ,
truncation_strategy: object ,
tool_choice: string ,
parallel_tool_calls: boolean ,
response_format: string ,
metadata: object ,
}
,
]
,
first_id: string ,
last_id: string ,
has_more: boolean ,
}
ListRunSteps (updated)
Description Gets a list of run steps from a thread run.
Reference Link ¶

⚶ Changes

{
  "#id": "ListRunSteps",
  "$parameters": [
    {
      "#name": "before",
      "Description": {
        "new": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.",
        "old": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list."
      }
    }
  ]
}

⚼ Request

GET:  /threads/{threadId}/runs/{runId}/steps
{
threadId: string ,
runId: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
id: string ,
object: enum ,
type: enum ,
assistant_id: string ,
thread_id: string ,
run_id: string ,
status: enum ,
step_details:
{
type: enum ,
}
,
last_error: object ,
created_at: integer ,
expired_at: integer ,
completed_at: integer ,
cancelled_at: integer ,
failed_at: integer ,
usage: object ,
metadata: object ,
}
,
]
,
first_id: string ,
last_id: string ,
has_more: boolean ,
}
ListVectorStores (updated)
Description Returns a list of vector stores.
Reference Link ¶

⚶ Changes

{
  "#id": "ListVectorStores",
  "$parameters": [
    {
      "#name": "before",
      "Description": {
        "new": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.",
        "old": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list."
      }
    }
  ]
}

⚼ Request

GET:  /vector_stores
{
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
id: string ,
object: enum ,
created_at: integer ,
name: string ,
usage_bytes: integer ,
file_counts:
{
in_progress: integer ,
completed: integer ,
failed: integer ,
cancelled: integer ,
total: integer ,
}
,
status: enum ,
expires_after:
{
anchor: enum ,
days: integer ,
}
,
expires_at: integer ,
last_active_at: integer ,
metadata: object ,
}
,
]
,
first_id: string ,
last_id: string ,
has_more: boolean ,
}
ListVectorStoreFileBatchFiles (updated)
Description Returns a list of vector store files in a batch.
Reference Link ¶

⚶ Changes

{
  "#id": "ListVectorStoreFileBatchFiles",
  "$parameters": [
    {
      "#name": "before",
      "Description": {
        "new": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.",
        "old": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list."
      }
    }
  ]
}

⚼ Request

GET:  /vector_stores/{vectorStoreId}/file_batches/{batchId}/files
{
vectorStoreId: string ,
batchId: string ,
filter: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
id: string ,
object: enum ,
usage_bytes: integer ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
last_error: object ,
chunking_strategy:
{
type: enum ,
}
,
}
,
]
,
first_id: string ,
last_id: string ,
has_more: boolean ,
}
ListVectorStoreFiles (updated)
Description Returns a list of vector store files.
Reference Link ¶

⚶ Changes

{
  "#id": "ListVectorStoreFiles",
  "$parameters": [
    {
      "#name": "before",
      "Description": {
        "new": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list.",
        "old": "A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list."
      }
    }
  ]
}

⚼ Request

GET:  /vector_stores/{vectorStoreId}/files
{
vectorStoreId: string ,
filter: string ,
limit: integer ,
order: string ,
after: string ,
before: string ,
}

⚐ Response (200)

{
object: enum ,
data:
[
{
id: string ,
object: enum ,
usage_bytes: integer ,
created_at: integer ,
vector_store_id: string ,
status: enum ,
last_error: object ,
chunking_strategy:
{
type: enum ,
}
,
}
,
]
,
first_id: string ,
last_id: string ,
has_more: boolean ,
}